package com.liang.cloud.Feign;

import com.liang.cloud.Entity.ProductInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author: 余亮亮
 * @description:
 * @create: 2020-03-26 11:59:40
 **/
@FeignClient(value = "cloud-provider-product")
@Component
public interface ProductFeign {

    @GetMapping("/product/api/findOne/{id}")
    public ProductInfo findOne(@PathVariable("id") String productId);
}
